Parallelize JavaScript minify of CodeMirror modes

Allow Buck to run minify for each mode independently of the
main CodeMirror JS. This cuts the build time roughly in half
as the modes minify concurrently with the main lib/cm.js.

Add the LICENSE file header to each mode. The MIT license
that covers the standard modes requires end-user redistribution
to include the notice along with the code.

Simplify the definition of modes by just naming the directory.
CodeMirror has a convention that the JavaScript is inside of
a same named JS file. This cleans up both the cm.defs file
and the Modes.java listing of every mode supported by Gerrit.

Fix dependencies for genrules used during the CodeMirror build.
A genrule must use deps to name each $(location) rule used within
the cmd string.

Change-Id: I996b8d2a1da8fe1b023c71c4a86bdcd4443c8c03
5 files changed