servedir: serve a directory over http