deposit: jquery-ui bundle drop and bundles refactoring

closes #2039

It refactors a bit the deposit javascript structure ping @lnielsen-cern