Merge lp:~robru/gwibber/dispatcher with his excellent rewrite of the dispatcher code. A few additional changes by barry:
* check_all target of the Makefile should --clear any previous virtualenv * Fill out the twitter.py stub to also include logging and i18n so that the mock from test_twitter.py is more relevant. * PEP 8-ification of some names. * Moved on_connection_{online,offline} to non-public methods of Dispatcher for more idiomatic access to `self`. Store the ctor argument `interval` in an instance variable. * Removed an unnecessary check from test_protocols.py