Add user token authentication through console

Added functions to allow the user to get a user token key/secret pair. In addition, the code has been cleaned up to make lower-level functions more extensible.

The system is clumsy due to issues with cross-origin requests, but functional. It requires the user to perform the REST requests manually, prompting them to call the next function with the response text.