Notification on every process instance state change (to update the UI)

@kilsen you can also leverage Java classes through the scripts. So you can use Javascript (Nashorn) to send a TCP message to your node JS server for example. But you can use a Java TCP lib and access it through JS.

Here is a example with Redis: Storing process variables: Json (Spin) vs. String / what are the impacts?