Output stats in the API.

Outputs JSON with the number of routes, and their checksum at /stats