dist/tools: add cppcheck script

Enables easy linting of:
- either the whole tree
- or just one branches changes against another branch
Oh, I overlooked "Geany".. Thanks.