Create new metrics-lib package with generally useful classes and functions

This ticket is based on a discussion on #24036 (moved):

  • At some point in the future we may add a new package org.torproject.metrics.util with generally useful classes and functions, including fingerprint calculations and commonly used regular expressions.