[FIXED JENKINS-17236] Introduce ArtifactManager.

See [JENKINS-17236](https://issues.jenkins-ci.org/browse/JENKINS-17236) for background.

_Not ready to merge, for initial feedback only._