Query engine almost ready.
Initial work on path-engine.