oauth2server: upgrade recipe fix

* Fixes issue with upgrade recipe not encrypting access tokens when
  a refresh token was not issued.

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

* Fixes robustness issue in upgrade recipe.

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

* Fixes issue with created database objects not having the type
  defined.

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

* Fixes issue with snapshots of workflow objects being accessible via
  the deposit interface.

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