moved socketio into its own js and made it self-referencing, added open
port finder