Refactor: migrated some apps to class views

migrated auth_handlers/dbauth, badges, categories, contact, courses and
portal