nodejs doesn't support destructuring assignment yet :(
Moved socket server stuff into its own module
Fixing tabification