Add support for connection.blocked and connection.unblocked

I mangled the last pull request for this, I think this one has everything we need!