base/deposit: flightjs uploader preupload hooks

* Adds the possiblity to invoke hookes before uploading.

Signed-off-by: Adrian Pawel Baran <adrian.pawel.baran@cern.ch>