website: Router API docs

Signed-off-by: Jesse Stuart <jesse@jessestuart.ca>
Merge pull request #551 from flynn/router-json-schema

website: Router API docs
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>