Fixed logout and other changes

More ACL lockdown. New methods for "Per" class.