Make cpu-stop consistent with heap-snapshot

* Pass file path to and save file on the backend.
* Make both commands return the file path of the saved profile data.
* Make errors reported during profiling are printed to console.