Adding shutdown-over-http, incremental job output

and refactoring to use render.Render for json, plus breaking out
route handler functions a bunch.