better login, logout. Class based detail views, permission mixins