separated classes, added tornado for websockets