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 
Can you add a comment? Even better, extract the number to a named constant, to make the intention clear:

```
var METRICS_UPDATE_INTERVAL = 1000; // 1 second
```