[db] keep script state in static variable
[db,log] add low-noise terminal logging
[log] use Lua io.* instead of texio.* when writing to terminal
[db] reduce noise of status logging
[log] fix simple (windows) logger
[log] suppress status info on dumb terminals
Merge pull request #143 from phi-gamma/master

add single-line status messages