lib: add skiperror option for batch mode

This option allows processing to continue after errors,
so that batch mode can be used for nights which have a
sequence of observations that could not otherwise be
reduced.  Also avoid exiting with bad status due
to data reduction errors in this mode.