Implemented GCM and server registration


Signed-off-by: svenake <svenake@gmail.com>