More work on GCM

Registration on client works but still not tested with a server.