Update control

Add restart function. Refactor to use case statement. Use style of other openshift cartridges.