STORM-76 fixes issues with indentation where mixing tabs and spaces causes bad stuff to happen. implemented a work-around for dirty db having an issue where it does not handle the 'error' event triggered during writestream creation. work-around baked into stormagent and will be used when stormagent integration happens