dist/tools: add license checker

Creates file structure that maps files to licenses by grepping for
license patterns (patterns for licenses found in RIOT included).
Sets exit code to 1 if an unknown license header is detected.
Merge pull request #1181 from LudwigOrtmann/licenses

license checker