heavily rewritten latch.js

It was sufficient for a minimal usecase with
Zapier.com, but Webhooks are as widely varied
as the things they are attached to...