[socket] reviewed code, added dependencies to socketio and sockjs resources

fixed sockjs test to stop at end, minor fix to socket schema, other minor edits usually JSLINT related