use set_alert_dispatch instead of timer to get an alerts from libtorrent
use post_status_update()
extract torrent statistics from torrent speed monitor to separate file