Changes for new Path API.
Merge pull request #30 from metajack/path-rewrite

Changes for new Path API.