Add scripts for CI

This adds a master CI build script and a branch building script.