Updated MainActivity with GCM registration code