Bugfixes, logging, improved Runnables

Fixes bugs in various places, improves the Runnable interface, and adds
the Arpk::Logger class, which acts as a synchronized wrapper to IO
output methods.