Initial query implementation.

This adds wicked-good-xpath and hacks it up to allow it to work against our object model. There are a lot of missing features here that will be tracked in issue #225.

Work on #112.