Added rails controller gcm register.