abstracted merkledag service
cleaned up interface to use DAG
added path resolution