Split main js file into sub-modules

- Split main javascript file to make it easier to work on
- Added a quick shim to load the other scripts
Fix visual bug in command list
Add license to all the javascript files
Change util.js layout
Add description to "Select All" menu entry
Make menu look better and clean up some code