Added first docstrings, small refactoring, title is now presented
Fixed badly displaying titlebar and controls in WebKit (tested on
Chromium and Luakit)