Complete rework of LogStream class. Removed the concept of log masks and focused on making logging work with appropriate log types and severities. It's not perfect but it's considerably better than it used to be.