Initial version of dependency rewriter.
Merge branch 'master' of https://github.com/ashmind/spinach