Restarting guiding after a meridian flip currently currently only happens, when the guider is in the guiding mode. For example, in the case that the meridian is crossed while dithering, the capture module does not recognize this as part of the guiding procedure and hence does not restart guiding as soon as the meridian flip is finished. This change fixes this and considers dithering, but also re-acquiring and calibrating as an indication that guiding should resume after meridian flip.
As a side effect, this fixes also the situation when dithering fails in the middle of a capture sequence. Without this fix, a failed dithering is ignored and capturing resumes without restart guiding.
Additionally, a possible a weakness that may cause null pointer exceptions in starting focus execution is fixed. And last but not least, some dead code has been eliminated.
And last but not least, dead code is removed.