Move js files directly included in index.html to lib, rework gruntfile to generate js files alongside typescript files, reduce watch to just concat/copy/reload and fix a couple issues