Add repr to connection.
Add tests and neaten builder.