Refactored interface-generic methods in base ptree module. Implement or stub out MongoDB ptree methods.