Added support for parametrized builds.

Also allowed overriding with `hook_api` (this was previously an error).

See: https://github.com/hashdist/hashstack2/pull/29