Add threaded Loginline.

Still pretty untested. This may explode into a billion pieces.