Changes reflect updated API, now more RESTful.

Updated to handle multiple HTTP methods and changes to endpoints.