ASTERIXDB-1320, ASTERIXDB-1323: License Fixes

ASTERIXDB-1320:
- LICENSE lists a large number of CDDL licensed bits of software
  CDDL is Category B we should provide a link to the source code (see 3.1.
  Availability of Source Code in (1)). Previous advice on legal-discuss
  was this goes in NOTICE but recent discussions have left this a bit more muddled.

ASTERIXDB-1323:
- Missing normalize.css (MIT) ./asterix-examples/src/main/resources/admaql101-demo
  /static/css/bootstrap.min.css
- Missing license for second bottle file (MIT) ./asterix-examples/src/main/
  resources/tweetbook-demo/bottle.py
- Bootstrap version bundled is Apache licensed not MIT licensed ./asterix-app/src/
  main/resources/webui/static/js/bootstrap.min.js
- It’s also not mentioned for all licenses what each license is (MIT/BSD etc) that
  can be helpful. The version of the bundled software is also helpful.
- Should include text of RainbowVis-JS license (or better still a pointer to a copy
  of the license file) [5] not a pointer to a URL on github

Also, misc cleanup.

Change-Id: Ie9fe9c18f63624896ccda420e1bf83ae0127021e
Reviewed-on: https://asterix-gerrit.ics.uci.edu/1463
Sonar-Qube: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
BAD: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Ian Maxon <imaxon@apache.org>
diff --git a/asterixdb/LICENSE b/asterixdb/LICENSE
index e7b3a06..2d57e6e 100644
--- a/asterixdb/LICENSE
+++ b/asterixdb/LICENSE
@@ -268,7 +268,7 @@
        and
          asterix-app/src/main/resources/feed/smoothie.js
 
-   are available under the following license:
+   are available under The MIT License:
 ---
    Copyright (c) 2010-2013, Joe Walnes
 
@@ -458,7 +458,9 @@
 ---
    Portions of the AsterixDB API examples
        located at:
-         asterix-examples/src/main/resources/admaql101-demo/bottle.py
+         asterix-examples/src/main/resources/admaql101-demo/bottle.py,
+       and
+         asterix-examples/src/main/resources/tweetbook-demo/bottle.py
 
    are available under The MIT License:
 ---
@@ -513,5 +515,105 @@
 
    are available under The MIT License:
 ---
-   See https://opensource.org/licenses/mit-license.php
+   RainbowVis-JS
+   Released under MIT License
+
+   (text of The MIT License follows for convenience)
+
+   Copyright <YEAR> <COPYRIGHT HOLDER>
+
+   Permission is hereby granted, free of charge, to any person obtaining a copy of
+   this software and associated documentation files (the "Software"), to deal in
+   the Software without restriction, including without limitation the rights to
+   use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+   the Software, and to permit persons to whom the Software is furnished to do so,
+   subject to the following conditions:
+
+   The above copyright notice and this permission notice shall be included in all
+   copies or substantial portions of the Software.
+
+   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+   FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+---
+   Portions of the AsterixDB API examples
+       located at:
+         asterix-examples/src/main/resources/admaql101-demo/static/js/jquery.min.js
+
+   are available under The MIT License:
+---
+   (https://github.com/jquery/jquery/blob/2.0.3/MIT-LICENSE.txt)
+   Copyright 2013 jQuery Foundation and other contributors
+   http://jquery.com/
+
+   Permission is hereby granted, free of charge, to any person obtaining
+   a copy of this software and associated documentation files (the
+   "Software"), to deal in the Software without restriction, including
+   without limitation the rights to use, copy, modify, merge, publish,
+   distribute, sublicense, and/or sell copies of the Software, and to
+   permit persons to whom the Software is furnished to do so, subject to
+   the following conditions:
+
+   The above copyright notice and this permission notice shall be
+   included in all copies or substantial portions of the Software.
+
+   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+   NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+   LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+   OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+   WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+---
+   Portions of the AsterixDB API examples
+       located at:
+         asterix-examples/src/main/resources/admaql101-demo/static/js/bootstrap.min.js
+
+   are available under The Apache Software License, Version 2.0:
+---
+   bootstrap.js v3.0.0 by @fat and @mdo
+
+   Copyright 2013 Twitter Inc.
+
+   http://www.apache.org/licenses/LICENSE-2.0
+---
+   Portions of the AsterixDB API examples
+       located at:
+         asterix-examples/src/main/resources/admaql101-demo/static/css/bootstrap.min.css
+
+   are available under The Apache Software License, Version 2.0:
+---
+   Bootstrap v3.0.0
+
+   Copyright 2013 Twitter, Inc
+
+   Licensed under the Apache License v2.0
+   http://www.apache.org/licenses/LICENSE-2.0
+
+   Designed and built with all the love in the world by @mdo and @fat.
+
+   also contains normalize.css v2.1.0, under the following license:
+   (https://github.com/necolas/normalize.css/blob/v2.1.0/LICENSE.md)
+
+   Copyright (c) Nicolas Gallagher and Jonathan Neal
+
+   Permission is hereby granted, free of charge, to any person obtaining a copy of
+   this software and associated documentation files (the "Software"), to deal in
+   the Software without restriction, including without limitation the rights to
+   use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+   the Software, and to permit persons to whom the Software is furnished to do so,
+   subject to the following conditions:
+
+   The above copyright notice and this permission notice shall be included in all
+   copies or substantial portions of the Software.
+
+   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+   FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+   COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+   IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+   CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ---