Minor refactor errors api internals
Added support for generating webhook events
Version bump to 1.8.3.7