It is now more readable, and the regexp's are only compiled once
IPv6 regexes didn't need to be that precise, added more tests for edge-cases.
Added a scrubber that takes all logging output to the standard logger and passes through a series of regular expressions to replace IP addresses with safe strings (e.g., X.X.X.X:443). Ensure server logs to stdout are also scrubbed