Tested and Debugged mail gateway
Fixed runtests to run all the tests
Cleaned up closing down sockets
Cleaned up the reaper thread a bit