Implemented GCM support.
Implemented GCM registration