added gcm registration functionality