Restart apps that died due to errors

See the commit comments.

Also see [App Restart](https://github.com/eugeneia/snabbswitch/wiki/App-Restarts) for prior thoughts.
In order to identify apps from `app_array` in `app_table`, we need to know its `name`.
I don't like this, suggestions? It works, but maybe this should be done differently.