Add Callback.preTransmit() hook

This commit adds a new 'preTransmit' hook to connection callbacks that
can be used for TX audit logging.