lib: factor common long-running plugins code

This branch starts off [#22](https://github.com/hammerlab/ketrew/pull/22).

This creates a new module oddly named `Ketrew_long_running_utilities`
which contains things which were in *almost* every long-running plugin so far.

In the process, LSF and Daemonize backends got more “precise” about
setting a target as “failed.” The previous code was sometimes setting as
failed a target even if it was technically successful.

OK: https://github.com/hammerlab/ketrew/issues/25