Added registration of an App (including gcmId) with the server.