deposit: edit robustness

* Disables edit button when deposition state does not allow for
  editing, as well as flashes a message if still try to access the
  URL.

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>