dist/tools: add cppcheck script

Enables easy linting of:
- either the whole tree
- or just one branches changes against another branch
Typo: same as above