Api cleanup

Refactors the mock API to be a bit more organized. This should help as we register more and more endpoints, and create a more complex fake API.

@carldanley, I plan to squash this before we merge. I also want to do a few more changes. I just opened this so you could get a look at it, and also so that I could see the overview of changes.