Massive removal of SecMgr dead code

This makes it much more obvious what SecMgr code we are actually using.
We limit ourselves to mainly deletes and small changes, because we don't
yet want to fork ourselves too much.
83 files changed