Add option to use stages for the repo setup instead anchors

Requested in Issue #157
Merge pull request #159 from elasticsearch/repo_stage

Add option to use stages for the repo setup instead anchors