Updated Metric classes to persist their data and use versioning, added calculations for metric averages and standard deviations