Json fixes and route names

This fixes the server to send JSON responses with the correct content-type.

It also adds names to the sample routes we add to the database in `populate.py`.