TS-2555: more features for ts_lua - support function to add global hook, use TSError, support TSSkipRemappingSet