Integration with gevent

To fix debug tool conflicts, to run application, run application as
usual, and activate run.py
some minor changes by Richard

Basic changes