Support for configuration and non-functional handlers (when.execute)

Hello,

I have added support for configuration parameters, public API customization and non-functional handlers/callbacks (when.execute method that we discussed).
Maybe you will find it is useful.

Best regards,
Denis