Misc debugging and download

Added debugging dump support
Replaced requests library by urllib2 library for portability