Refactor connection.transports.bosh module

subj