use gevent AsyncResults instead of Channel to notify subscribed clients, wrap flask app with gevent wsgiserver when running as standalone, fix few imports when running standalone