Set a default RestartMode in HAAgent
Add missing process state map
Fix process name generation

account for HAAgents that schedule by process definition name
instead of ID.