Refactor post retry in GCM.
Mibor fixes.
Fix crash when in registration retry.