Add cppcheck linter to tests, fix the things it complains about
more style/consistency fixes
Merge pull request #11 from uber/cppcheck

Add cppcheck linter to tests, fix the things it complains about
Merge pull request #12 from uber/more_style_fixes

more style/consistency fixes
teach stats_log how to do dynamic memory allocation