Admin permission stuff
Fix logout.
Merge pull request #130 from computmaxer/master

Fix logout, user permissions