All this complexity to save a few bucks per year on your electricity bill? This is ridiculous, the Pi costs far more than what you can be expected to save.
replies(9):
If you are willing to send magic packets to wake up the server, before using it, you can save money from the electricity bill with negligible complexity.