Allow to configure pipe restart behaviour

Follow-up of #942 - LOGSTASH-1799 Don't always restart pipe commands.
@colinsurprenant can you have a final look at it please.
since it was originally at 10 seconds, I'd put `@wait_on_restart` to default to 10 too no?