Remove global should_exit and fix tests

I have a plan to integrate libmproxy in w3af https://github.com/andresriancho/w3af/issues/1269.
Current Master implementation depends on global variable `should_exit` for shutdown proxy server, it's bad for us, because we use many threads and different proxies. 
I've changed implementation by using threading.Event.