moved createMessage function to GCMClient