Fix #300 (Provide scroll lock in logging window)

Being scrolled to the bottom of the log is measured within 30 pixels, which is roughly a single line.

There is also an option (disabled by default) to force the log to scroll to the bottom regardless of where it is scrolled to, as it previously behaved.