A revamp

* Less magic!
* Get rid of the default dag, and auto-writing on program termination
* Write a submit file by default, rather than relying on hand-made one
* Partial test suite