Merge snapshotPivot and snapshot cli commands and support multiple outputs

Not entirely sure I have this right. Will add a cli test once I get a confirmation.
That was the intention of my earlier comment when I mentioned "splitting of taking of snapshot" from this code. I think it should be a function that takes some output and transforms it, it shouldn't be calling snapshot or chord (or reference them).