PROTON-477: Enforce SASL and SSL singletons, fix minor errors flushed out by Pylint

git-svn-id: https://svn.apache.org/repos/asf/qpid/proton/trunk@1550748 13f79535-47bb-0310-9956-ffa450edef68