Correctly showing downloads with various statuses

Fixed the bug causing an error when a torrent has a status other
than 'stopped', 'seeding' or 'downloading'.
Moved the invariant code out of the loop in updateTorrents()
Merge branch 'pr/13'

Conflicts:
	resources/lib/gui.py
Corrected broken variable references in updateTorrents