Remove loggin to stdout in daemon mode

Flask would log things to stdout and naturally this isn't ideal when
running as a daemon. This removes the StreamHandler that logs to stdout
when running as a daemon.

Fixes #472.
Merge branch '472-fix-flask-logging'