Backport fr_syserror() from master

Backport misc.c from master
Cleanup signal handling code
Backport debug functions
Correct type for bool fields in radiusd main()
Fix fr_exit signatures
Minor fixes to debug functions
Add panic action support to radiusd and unittest