added __name__ == "__main__" to prevent launch of window on import
designed to support tests better
removed unused imports
Merge branch 'ja-barr/alerts' into staging

Conflicts:
	src/qweechat/qweechat.py
Merge branch 'staging' of ../elsa-qweechat