Wsgi updates
Logout, permissions, more of interface, flags