proto-shell: move script handler config parse code to handler.c