Add route to create comments and refactor routes

This pulls the route handler functions out in to controller objects, and
puts the database access stuff in a models directory.