Refactor Metric to use struct and interface.

Use a DataStore struct
Use struct in server too.
Inject store in server in main
Add GetKeys