Add 'respond_to' and 'respond_with' to controllers

- Add `respond_to` and `respond_with` to controller definitions
- All of the routes that used to return a variable will now respond
  with json or html depending on the request.
- Some of the endpoints return more than one thing, but I wanted to
  make this change without breaking the current views.

:sparkles: @KyFaSt, now we can build a Javascript front end :sparkles: