Extract some of the path expansion logic into a separate class.

Add some documentation for the new tags to the README.