Adding GCM handler for registering and unregistering devices