Final setup of the registration on gcm.
Fully working