Add depsolving utility

Add a dependency ordering utility.
It is not wired into the Bash processing yet.
Merge pull request #134 from encukou/depsolving

WIP: Add depsolving utility