First draft of the v1.0 API.  Adds GET support for /case and /casenotes.

Hello Michael, here a pull request that includes my code from earlier today, plus a few bug fixes.

-Aaron