Another cleanup pass.

Differents features were updated and cleaned to uniformize
the way they work with the new selection mecanism.
Removed all references to KdTree.

Since it has been replaced by an Octree more than a year ago, time to clean this.