Default: ERT-745: Added HISTORY_LENGTH config option

With the new config option HISTORY_LENGTH it is possible to set the
length of history also in cases where no refcase/schedule is provided.