WIP #561: restore stdstreams in printcore, don't butcher loggers

And move setup_logging to the main printcore app file. This way we don't
need to butcher loggers anymore
Reset handlers in Pronterface, grab & restore stdout & stderr
Fix #587: don't try to log when log path is empty
Append filename when log_path is a directory