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.
We poll for dead apps once every breath. I thought this would kill performance, but I couldn't measure a drop. So I kept it this way because its siimple and clean.