Use build API

This uses the build script API from travis-ci/travis-build#211.

@joshk Does this look good in terms out timeout handling?
I decided to time the build script generation as it makes for a nice comparison of the time it takes for the API vs build script.