Make default restart intensity values configurable

Add two application parameters, `max_restart` and
`max_seconds_between_restarts`, to allow an external application
to configure these values. See README.md for details.