Small changes to check if a user has permission to do something
Huge commit but we got basic user management with roles and permissions now