Added privileges support
Fixed SimpleException handling
Login/logout->log in/log out
Fixed bug in privilege checking
Fixed JSON mime type and exception handling
Fixed exception viewing
Worked on #5