XPath Support

Opening this as a pull-request so it's more obvious to the outside world what exactly is being done regarding XPath support.

Corresponding issue: #10