Fix logger window blocking the bitmask quit().

- Set the logger window parent,
- don't use an mainwindow instance variable to hold the window object.

This fix have the side offect that prevent multiple log windows being
created at the same time, but it does not causes any side effect or
problem.
Merge remote-tracking branch 'refs/remotes/ivan/bug/logger-hangs-quit' into develop