optimization fix
optimization fix

* WorkflowDAG accepts workflow job template and workflow jobs for which
to build a graph out of the nodes. The optimized query for each is
different. This changeset adds the differing queries for a workflow job.

wwitzel3/awx,wwitzel3/awx,wwitzel3/awx,wwitzel3/awx