errorfiles support

Also fixes the logrotate stuff for haproxy which I did ages ago and forgot to submit a pull request for.