Disabled writing worksheet history in offlinemode

WorksheetHistoryMetadata now enables a flag in CommandHistoryWriter
Cleaned up TestCSVFileRDFGenerator
Removed some unused imports.