helper methods, ACL and improvements

- ADD: types for handling access control lists
- ADD: SingleOrDefault() helper method
- CHG: code improvements