Add ref option to build_packages
Add ref option to build_installer
merge nathanlws: Add TOOLS_REF option to build scripts

Merge pull request #1099 from nathanlws/sql-layer/tools-branch-option
https://github.com/FoundationDB/sql-layer/pull/1099