main: register unit with yaml and procfile data after build hook
main: register unit with yaml and procfile data after build hook

This enables the capability of generating the Procfile in one of the
build hooks. This is actually a regression, as we supported this with
Circus (the last line of the function is the call to write_circus_conf).

tsuru/tsuru-unit-agent