Restructured the API module.

We can now, very easily, add new endpoints by consuming the `rave.api` object on the page.