Trying to get registration working in javascript.

- Register works but still need to parse the registrationId and also the
  monitor and channel links. Need to read the Push API spec and see what
  is exactly supposed to happen.