Made into node.js module

Cleaned up more code.
Added jSocket creation without needing a socket ahead of time.
Made project into a node module
Removed test files