Updated the API exposed by the HostObject in scripting scenarios.