[FIXED JENKINS-20999] SecurityListener

[JENKINS-20999](https://issues.jenkins-ci.org/browse/JENKINS-20999). Not ready for merge, but initial feedback welcome.