Looks a little less hideous now!

I added bootstrap and some default stylings. Its not 100% complete but it sure looks a lot nicer. I moved the db stuff to its own file and added a check for a dev env so it will connect to a local mongodb instance if one is running. The default 'dev' db is localhost/supersmooth. I also made a few minor layout tweaks and finally got the  global layout stuff working.