Add a keep-alive to prevent timeouts on websockets, ignore the webhook
if it points to localhost and two small fixes.