cleaning up and improving function metrics (#2994)

* removing metrics module from functions

* removing other references ot Prometheus metrics server

* removing references to pulsar-functions-metrics

* fix unit tests

* revert test change

* cleaning up and improving function metrics

* slight refactoring

* fix unittest

* moving pulsar-spark tests into its own module
3 files changed