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.
I guess it could be a constructor. Although we don't have constructors for API objects anywhere else. If we're going to create a build from a buildConfig in multiple places we should have one way of doing it and that's what this is.