Fix some typos, add the rest of the API, switch to using the 'request' module.