convert DAGService to an interface
Merge pull request #191 from ehmry/dagservice-interface

convert DAGService to an interface