Consolidate, validate and minify javascript sources

Added javascript.py to validate, consolidate and minify javaScript sources using jslint and the closure compiler. Fixed existing jslint errors. See https://github.com/codalab/codalab/issues/369