OSX 10.9 compatibility and gevent 1.0 support

I left a few extraneous comments and prints in, but it all seems to work for my Mac clients.
I have not tried running it without the gevent 1.0 fixes, since it will only run on my ARM server with 1.0.