InspIRCd: fix various audit warnings.

Closes #35344.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Extract method
Remove duplicated logic from FromUrlLoader
Preserve backtrace from original exception
Preserve backtrace for download errors
Move exception text into exception object
Merge remote-tracking branch 'upstream/master'