Changed the collection of Permission objects to Permissions including
List<Permission> internally.
Enhanced to save/restore the activity state of permissions.