Move lib/ui/browser.py to lib/windows.py due to general window handling methods (#18)

This PR is the first patch to refactor the lib into general window handling code and ui specific classes. @ahal what do you think?