more fixes  mostly on the permission system and on logout
logout now working properly

Signed-off-by: schmunzel <schmunzel@swganh.org>