Implement callback registry and function binding in utf8grid.