Added restart role API and tests.
Bug Fix in delete deployment API.
Indentation and test case cleanup.