Changed routes to be more RESTful
Added doc of API, fixed indentation in routes.js