- fixed a typo causing error in password handling
- implemented messages for connection errors and empty torrents list in template
- added debug logging for connection