More security fixes, and code cleanup/reduction with new privileged* util methods

Gets rid of quite a few SecurityAction classes, and drastically reduces several others.