Added local sockjs script for client.
Removed json2 as it is contained in the sockjs script.
Initial client connection code.
Added missing main method.
Removed dependency to 'async' module. Restructured code. Added documentation.