Big changes to build system, using RequireJS optimizer