Thanks to eureka, we finally came up with a full "communication service" between WAF and the rest of the system.
We can now run a custom script from inside a WAF and then let the WAF wait for a reply.
The reply can also contain variables, messages or anything else.
We can use this to avoid using eips, to create a nice GUI for shell scripts or to provide user interaction during the execution of a script.
I finally found also a way to trigger the cache refresh so that we can update WAF's file and make the WAF load them without restarting it (this really was a simple thing!!).
I'm still looking for a way to refresh the localStorage cache...
Everything will be documented asap!