PirateBay proxies support

Unfortunately in my country main PirateBay site is blocked and I have to use one of the proxies to reach the site. This PR adds basic support for proxies.