Added html2js, minor reorganization of tasks, using a temp directory for generated files before copying to build