Add callback for GCM connections

Add callback support for GCM notifications, modeled after the C2DM callbacks.
I would simplify this completely by making it https-only