HomeSoftware Heritage

Deduplicate server code and move metric handling to storage.py