Added connection constructor to make a connection through a given transport