tools: add license boilerplate to check-imports.sh

I want to use this file in other projects and I don't want there to be
any misconceptions about its authorship or copyright.
tools: make check-imports.sh accept cli arguments

Make it possible to invoke the script as `./check-imports.sh foo.cc`
but default to src/*.cc when invoked with no arguments for backwards
compatibility reasons.