Fix exceptional resource leak (CID18460)
Fix exceptional resource leak (CID50175)
Refactor HTML tag removal
Clean up HTML encoding
Prevent a rare security exception

This should fix CID18178, and probably others
Make Configuration thread-safe and clean it
Remove duplicate IsRunningOnLinux/Mac
Add a safe method to get a registry value
Fix exceptional resource leak CID18136