Simplifiy the namespace locator. It more simple and stable, matched my goal ha.

Also, loadNamespace, registerNamespace and unregisterNamespace has been changed to use the new locator.