Add utility method to generate build

Adds a utility to generate a build, given a buildConfig and modifies the webhook controller to use the new method.
It's also meant to be used from command line code, which will come afterwards. As far as the new package goes, wasn't sure where else it would make sense to go, there's no other sort of generic build function location.