Implement new xpath constructor.

xpaths are now created in the xpath_factory module. A new
technique is implemented using a modified version of
Deconinck and Patterson's approach.