Add script build_branches.sh

This is used for test.adagios.org to build all branches
Merge pull request #487 from opinkerfi/feature-script-for-building-all-branches

Add script build_branches.sh