Simplifying the code for the API #294

* Collapsing some routes.
* Normalizing a bit here and there.
* Adding 404 when the path doesn't exist.