Add check for GCM message type and only sync for sync message.

Phase 1 of #80.

Signed-off-by: Greg Meiste <greg.meiste@gmail.com>