use local copies of lib JS packages so minification works
lots of fixes for prod builds
misc fixes