Initial, half-assed attempt at an XPath evaluator.