added some debug output to routes.py, and fixed some var scoping issues in the transfers.js that would make removing items in the download q impossible for some peers