Add basic template handling and web root

This includes a minor api fix so that it only responds on /api, rather
than on all paths, and a handler HandleRoot() is invoked for all other
paths.