Get build to work by pulling out more of the build API!

Refs #6

Also had to mock out some of the UI stuff that the build
pipeline is coupled to :(

We still have to fix the RunTest that cannot find JDK 1.7, but
at least the build and run works in production now....