Updated the client to use the updated JSON interface for registering
push tokens.  Added a user agent.