WIP: Updating workflow via the API + test case.
Code de-dup in workflow controller.
Move body of _workflow_to_dict to new WorkflowContentsManager.

Getting closer to killing UsesStoredWorkflowMixin.