Merge pull request #16 from tlocke/py3

Speed up driver
Simplify the event loop

Now the main event loop just continues until a READY_FOR_QUERY message
is received. This follows the suggestion in the Postgres protocol docs.
There's not much of a difference in speed, but the code is a bit
simpler, and it should make things more robust.