implement webhook handler
add code mirror to help edit the config