Route changes

More restful of an API. Also linted some code.