add single-line status messages

If the database is rebuilt on the fly luaotfload now displays the currently
scanned file on the terminal.
This involves moving the term output from the ``texio.*`` functions to
ordinary Lua ``io.*`` because the former (see ``printing.c``) intercept
most ANSI escape sequences on when in TeX mode.