moved io hadndling up a bit
moved socket.io functionality into server app
preserving server as a property of app. also, included baconhjs