Added a middleware tracker for metrics and a new JVM handler for some JVM emtrics