deposit: clean error messages after import

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>
grunt: jshint fixes

Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>
deposit: save form fields after import

* Saves field content after importing data from an external source,
  this way the fields keep the content after a page close or refresh.

Signed-off-by: Pedro Gaudêncio <pedro.gaudencio@cern.ch>
Reviewed-by: Javier Martin Montull <javier.martin.montull@cern.ch>