Add a Metriks middleware

This tracks metrics for endpoints and request methods.