refactor profiler references to new endpoints

refactor profiler references to new endpoints

- change processId to pid
- change api endpoints

@seanbrookes please review
is there a reason this should stay?