Providing a way to specify the executor to use while constructing the DAG object

Right now there is no way to specify an executor for a DAG. This seems like a bug, so here's a simple diff to patch it.