Redo build pipeline to more cleanly minify, add AMD/CJS modules.