HistoryFileSource.cpp: coding style
HistoryFileSource: implement more open/close
Move last interval end to history file sink