Work in progress.

Committed so that I can work on this from another computer.
my first shot
now it works
Integrated failure action.

Also improved the timespan support.
Defaulting to ms for backward compatibility.
Non-zero value makes more sense

If this defaults to 0, effectively it makes the element mandatory.
Reusing the timespan parsing code
releasing this as 1.13