QueryPath extensions should call the QueryPath::ExtensionRegistry::extend()
function to register their extension classes. The QueryPath library then
uses this information to determine what QueryPath extensions should be loaded and
executed.
Extensions are attached to a Query object.
To enable an extension (the easy way), use QueryPath::enable().
This class provides lower-level interaction with the extension
mechanism.