Fixed problem with stack too deep.

Turns out that EventMachines's Queue.pop does not block when run on the
reactor thread, which caused recursive calls that went too deep for tha
stack. Therefore rewrote some code in Multiline and Spooler to be
iterative.

Also made some configuration changes and improved some logging.