REVIEW-4436, REVIEW-4429: Split artifact set resolution into 2 questions

- Resolve component artifacts of a particular type
- Resolve component artifacts for a usage
Renamed some parameters
Some minor refactoring
Unit tests