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 
Use `setImmediate` or `setTimeout(fn, 0)` in that case, see my other comment.