Add consolidateAll option to save all output to a single file.

I added a `consolidateAll` option. Because boolean parameters are generally a bad practice, I moved them all to an object. A very ugly alternative would be to add the `consolidateAll` boolean parameter as the last one in which way backwards compatibility wouldn't be broken but it wouldn't be a nice interface.

Fixes gh-44