Fix bug where file vs. remote isn't reseting

- the devtools iframe was not resetting when going back to File mode
- move logic from profiler.directive to common.directive
- add `iframe` flag to `<sl-pid-selector>`