Added support for parametrized builds.

Also allowed overriding with `hook_api` (this was previously an error).
named streams so errors propagate better
Merge pull request #143 from hashdist/parametrized-builds

Added support for parametrized builds.