refactored middleware
Experimenting with sockets.io / websockets

Hopefully, we can reduce http traffic (hate all those constant /thing/id/data
GETs) with this. I'm only thinging of using them for data transmission,
for now, but later I could expand it. Also, is get really working here?
Finally, fixed gitignore