Merge branch 'connection_counting' into 'ibm-trunk'

Cache outbound connections with reference counting.

See merge request !59