Saving of aggregates and corresponding aggregate retrieval functions implemented. Version ready for NRG4Cast reload with aggregates.