GcmManager
Added updateState query
Added GCM functionality