Factor build_all script out of .travis.yml, move automation scripts into a tools/automation directory, fix Vagrant .profile setup, allow build_all to run on non-Travis systems.