Factored out code from .roles that resolves the user and user_id from user_or_uid

This will allow modules overriding Hydra::RoleMapperBehavior to avoid repeating this resolution.