Minor cleanup
Prevent spurious creation of permission objects in many cases when security manager checking is disabled
Add privileged utility methods for the most common privileged actions which avoids the need to use expensive doPrivileged and checkPermission calls