Added `REST.ensureLoaded()` method that fully loads the given document, only if it has not been loaded yet.