Implement a persistent storage aggregation counter class.

This class is currently used to aggregate the active daily use time
but can also be used to aggregate other data (e.g., active use time
between crashes) before sending to UMA. Abstracting this in a separate
class also simplifies the daemon unit tests.

An alternative design would store the data on shutdown (but may slow
down shutdown a little). This should do it for now.

TEST=gmerged on device,inspected logs,about:histograms,etc.

Review URL:
9 files changed
tree: 29166a9ccc053710c309b3e67fb8d33ad7ff0cfd
  1. metrics/