workflows: unit tests stabilization

* Goes over the unit tests and treats query results in a more
  stable way by ordering results directly. Should avoid problems
  of occasional failures when running the unit tests.

Signed-off-by: Jan Aage Lavik <jan.age.lavik@cern.ch>
deposit: workflow integration update

* Updates part of the workflows module integration to
  create and save workflow objects in the new way. Versioning
  and statuses are now handled by the workflow engine itself.
workflows: continue execution fix

* Fixes an issue with continue workflow execution of an
  initial object due to unknown workflow position.

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