Changed output to JSON.
Added trollop and options to mint-stats to make it accept different periods of time.