OC-20 - Prompt user to save when quitting with unsaved changes

    This also removes some dead code related to HTML5 support.
OC-20 - Move cleanup logic into SegmentController

    Also cleans up the way Segments are initialized by the parsers