Fixes and implementation of roles and user_roles services.