Rework the artifact match and exclusion logic

Clean up the logic, replace DependencyWrapper with MavenCoordinates, add tests for artifact matching.