added packages needed by ui.js
made download an even emitter, allow parallel downloads