metrics visualization initial module implementation

- establish metrics module

This PR is primarily for the initial implementation of the metrics arc module but also contains some enhancements for the PID selector which is shared by the profiler.

the PID selector changes are mostly arround remembering references to previous pm servers for convenience

Fixes #578 
Fixes #594 
Fixes #479 
Fixes #482 
Fixes #502

/to @bajtos @anthonyettinger 
Lots of repeated code, it's hard to tell what are the important (different) values in each case block and what is common (shared). Can you refactor and extract the repeated code into one place?