fix duplicate mesasge id
delete logging the server base folder
replace Connect with Express

Express provides a Sinatra-like API to define the application, while
Connect operates more on the middleware level. In fact, Express uses
Connect as its middleware.

Also cleanup the server implementation. Use routes instead of custom
request dispatching, move terminal into util namespace, and compact the
rest of the server (which is now implemented in app.js)
move UI resources into public/
place server-side code into lib/
procfile for Heroku deployments