Add branch build script.

Also add conditional to gem_publish call to prevent branch builds from
attempting to publish the gem.
Merge pull request #127 from alphagov/branch_builds

Add branch build script.