Make Deploy and Task objects similar

The objects have got a similar interface methods: __init__, get, delete,
delete_by_uuid. The API of DB was also changed.

Change-Id: I7c5962c14b2dd701b9c474d8c5cd8b5198621dd5
Implements: blueprint independent-deploy