Api courses

See the complete commit messages for each of the four commits (beyond just the title, each of them has extra details on what has changed).

In particular, this addresses API documentation in the source and redundancy in controller code.

Also, run `rails server` and view `localhost:3000/api/docs`