Add utility function for capturing panics
Capture panics in cmd/syncthing/
Capture panics in beacon
Capture panics in discover
Capture panics in events
Capture panics in model
Capture panics in protocol
Capture panics in scanner
Capture panics in versioner