Move logging to server

We started out doing logging from within MainWindow, mainly since that's
where the log was viewed. But we don't really want to tie logging to the
view. The logging should be handled in a more central location.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>