Add a select method to Connection

This is a draft; it has not been tested, not even manually.
It is meant for conceptual review