From http://snipplr.com/view/71315/simple-file-http-server-in-nodejs-with-connect/