Added hash to pushmessage to mitigate message forging.

Also made HTTPS connections possible from the client.