More RESTful approach to API

Updated some routes.