Modified to work without setuptools if its not available.

Was using tornado on a small embedded router, doesn't support setuptools. Tornado has a fall-back option, now sockjs does.