Check javascript licenses during build configuration.

A check is run to make sure all licenses (with a few exceptions) are the same for the files that go into webodf.js.