The people behind lowpowerlab has come up with a nice solution to switching your Raspeberry Pi on and off. Using a microcontroller and letting it communicate with the Pi over GPIO, the power supply is kept in sync with the Pi. All is explained in the video below.
Via hackaday.