Added self-hosting sample server

(see http://christianmeilke.wordpress.com/2013/08/12/running-pushqa-push-messaging-service-in-stand-alone-application/) + some refactoring