Rewrite to support two simple config options

Removed the last traces of image building and changed and changed
signature to accept an <controllerid> <config>.

Currently only supports config options [node-agent|node-provisioning]
allowing the caller to select between the two.