Refactor Document.ensured to Document._ensured.
Update documentation to fix bad reference to config_hostname.