Adds json as a possible output format

Allows you to choose between `csv` and `json` for outputting the results to a file.

I would've written tests, but the current tests hang. I assume it's due to changes in grunt. If you update the tests to play nice with grunt >v0.4.0 I'll add the tests for json output.