PbsCmdLineTask: add context manager to log flow in/out

This takes care of the common "starting", "finishing" log messages,
and optionally swallows exceptions, optionally logging tracebacks.
Merge branch 'tickets/DM-662'