add ability to refer deployment by uuid or name

  also deployment name turned unique in db

Change-Id: I513b5259e0cfa66780b4ce00cf78dc57aeeb57db
Merge "add ability to refer deployment by uuid or name"