updated for tornado/zmq api changes. cleaned up look. detect mobile/desktop