Remove cruft. Make url handling more robust

Hey, thanks for creating this. Here are a couple improvements that I've implemented:

app.js
- Added a flag to enable/disable debug messaging

public/javascripts/socket.js
- Removed hardcoded url
- Added . escaping for jquery

routes/index.js
- Formatting

view/index.html
- Removed what looks like old ajax code