Support creation and removal of VM leases from REST-API.
*** This bug has been marked as a duplicate of bug 1412230 ***