Working on the security dom responsibilities.
Simplifying addperms in ApplicationRole; fixing up unit tests and integ tests