First cut at a gevent connection class.

It seems to kind of work. The integration tests aren't working
right; that needs to be fixed before first. A simple test of the
basic functionality seems to work, but I've not yet tested the
recovery/retry and other execptional conditions.