Add CohortConn class

This is an RC class which allows convenient stateful computations on the
database server. As currently implemented, it only has methods to
connect to and disconnect from a server.