Add full logging support using SLF4J + logback

The current logging system's output should be identical to the old one.
New log files are saved in log/new/*, old ones are in log/* (same as
they used to).