ndomod_write_object_config(): Free all temporary escaped strings.
ndomod_register_callbacks(): Plug memory leaks and refactor.