Created a ConnectionActivity super class to hold most of the faffing about wrt to a Connection.