fix potential race conditions
Fixes problems with upstream changes
Fixed conflicts
Merge pull request #183 from mannol1/master

Fixes problems with upstream changes
delete subwindows before parent window on resize to prevent memory leaks
create dns loopup threads in detached state & add a few missing error descriptions
merge and some fixes
use full name for log
Merge branch 'master' of https://github.com/JFreegman/toxic into groupbot