Finished the clientside framework for GCM support