regisGCM and push notifications functions