deposit: saner deposit/form.js

* Refactors form.js into an AMD module.

* Factors out all the useful templates in proper mustache files.

* Converts to string the simpler templates.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>
deposit: fieldlist plugin separation

* Renames fieldlist plugin to dynamicFieldList.

* Moves the plugin to dynamic_field_list.js.

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Co-authored-by: Yoan Blanc <yoan.blanc@cern.ch>
deposit: wrapping DynamicFieldList into a class

Signed-off-by: Kamil Neczaj <kamil.neczaj@cern.ch>
Co-authored-by: Yoan Blanc <yoan.blanc@cern.ch>