implement textgrid:sethastitlebar() + other things

* Make it so that text grid can always become a key/main window (if it doesn’t have a title bar)
* textgrid:center() method too.