Add locator attribute to Leaf for easy implementation of modules
Instead of overriding create_locator
at "compile" time, can dynamically set the locator class used at runtime by module.locator = LocatorDesired. Then, create_locator(resource_uri)
simply calls module.locator(resource_uri)