implemented registering gcm by using android dev tutorial