Modify metrics to use UserMetricPeriod classes in user_metrics.metrics.users module / tox / user_metrics.query module

- Some general modification to metrics to make them compatible with user metric periods.

- Fix tox testing calls.

- move user_metrics.metrics.query -> user_metrics.query