Refactor logging

Instead of printing everything out to stdout, create a logs/ directory
and store a server.log file for the Flask logs and an app.log file for
the internal logs