A simple JSON API

/name/:name
/time
the creation of the server and the listen statements should probably be at the end of the file.