Move user_roles view into teamwork proper, add tests