Remove Jaxen, port function defs Use enum to represent XPath version Move to internal package Fix style Refactor functions