RESTful refactoring of /course access continued

Move index access into the url
Move course creation into the url
Add helper methods for testing to serialize json data and set accept header.

@cahrens this is part of my story but seemed big enuf to do as a PR, plz revie
@singingwolfboy plz review