Add state handling to handler processing

- Use <plugin_dir>/config/HandlerState to manage plugin state