GCM fixes

Converted GCM to public class instead of activity.