Restructured the API module.

We can now, very easily, add new endpoints by consuming the `rave.api` object on the page.
Merge pull request #7 from carldanley/seperate-api-to-files

Restructured the API module.