Extract api handler into separate file
Extract running router from source into a script
Output stats in the API.

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