WebDeposit: fix issue with identical file names

* Fixes an issue that would cause problems with identical filenames.
WebDeposit: fix undefined variables

* Fixes issue with undefined variables and class names.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
WebDeposit: initial REST API release

* Initial release of WebDeposit REST API.