Move wrap_addstr into basicwin, bugfix in linepopup

linepopup wasn't taking the width of the header lines into account
Start to expunge use of the ui.table class

ui.tableformatter is more flexible and avoids lots of zipping up of
lists!
Revert change to header line handling in listpopup

Turns out that ignoring the header line length was deliberate: if
strings are supplied they will be wrapped in lrline() and word-wrapped
as appropriate.
Expunge ui.table from department.py
Expunge ui.table from lockscreen.py