* Add hooks for network and chain events. Move logging to an EventLogger * implement webhooks * fix failing test * remove unnecessary 'pub' * add some metadata to the json payload * avoid unecessary init * resolve conflicts