Thank you for sharing.
I've had that on my list way to long, to try and create a good framework for handling state, config and cleanup for workflows.
I have moved it to blogs category