moves code from 'process connection' hook to 'pre-connection'
Authored by: pbuchbinder 2016-11-26
Parent: [r2196]
Child: [r2198]