dist/tools: add cppcheck script

enables easy linting of the whole tree or just one branches changes against
another
tests: enable cppcheck for PR in travis