Changed gcm manager to module from class

The gcm manager was pointlessly made as a class. We are going to be
using the gcm manager in the server code for use in sending
notifications to friends, so we need to abstract away the need to create
a new instance of the gcm manager class every time the server is
invoked.