Sanitize workflow and input dataset names in workflow run.mako.
Sanitize display of workflow parameters in workflow run.mako.
Rebase -2.
More sanitization in workflow display.mako.
Sanitize workflow name in message when extracting workflow from history.
Sanitize workflow name in myexperiment export.

On the off chance that XML file ever gets interpreted as HTML. Shouldn't hurt anything for well behaved workflow names.
Sanitize tool id, name, and version during workflow import.
More sanitization while handling fields from an imported workflow.
More sanitizing of workflow name and tool information during import.
Sanitize workflow name and tool ids when running workflow with missing tools.
Sanitize incoming workflow annotations during imports.
Sanitize name during workflow renaming.
Sanitize workflow names during workflow copy and delete.
rebase somewhere earlier.
PEP-8 fixes for lib/galaxy/tools/parameters/output_collect.py
Refactor output_collect for reuse.

Reduces cyclomatic complexity slightly as well.
Refactor small helper out of get_work_dir_outputs.

Leave comment about not understanding the complexity :).
Add helper for waiting on a job instead of a history.

Used downstream - should try to use this more in API tests.
Rename variable for clarity post output collections.

After tools can explicitly create collections the term created_collections becomes ambigious - these are history collection instances (HDCA) implicitly created by mapping over collections so renaming this field implicit_collections.
Rename variable for clarity.

This method does not just return datasets.