Minor refactor of stats processing
Add log option to pipe console.log to grunt output