Merge branch 'dev'
Added OnBeforeAuthorizeConnect logging