Extract alert handling to separate functions.
Replaced dynamic_cast with switch on alert type.

Conflicts:
	src/qtlibtorrent/qbtsession.cpp
Merge pull request #1730 from sorokin/no-dyn-cast

split handling of alerts into several functions and use switch instead of dynamic_casts
Fix building with Qt5 (missing QObject decl).