Added the rest of the API.
RESTified the API.