Cleanups to restart policy code

Parameters for the restart policy are now 'name' and 'retries', and a
single, colon-separated string can also be used, like "on-failure:3".

Signed-off-by: Maxime Petazzoni <max@signalfuse.com>