Fixed a bug that looks to be platform dependent (groovy on windows). 
Added a script that uses stash rest service to clone repos
Refactored: extracted stash rest module