controller/examples: Output log to LOGFILE or /dev/null (STDOUT is only JSON)

Signed-off-by: Jesse Stuart <jesse@jessestuart.ca>
controller/examples: ResourceReq.Config is required

Signed-off-by: Jesse Stuart <jesse@jessestuart.ca>
test: Validate controller examples

Signed-off-by: Jesse Stuart <jesse@jessestuart.ca>
controller: Support assigning ports to one-off jobs

Signed-off-by: Lewis Marshall <lewis@lmars.net>
controller,test: Run controller examples on Flynn cluster

Signed-off-by: Lewis Marshall <lewis@lmars.net>
script: Add generate-controller-examples

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #526 from flynn/controller-validation

Validate controller examples