Add tests for OffsiteMiddleware() + use re.escape() in domains regexp
fix logging error with unicode spider name

Log message fails if spider name is in unicode, because "system" key in eventDict isn't encoded.
fix method name in tutorial. closes GH-480
Adds the functionality to do HTTPS downloads behind proxies using an
HTTP CONNECT.
Removed some trailing spaces that I left.
Improved error handling.
Raises a custom TunnelError when the tunnel cannot be opened. Removed unnecesary comments.
Adds support for proxy authentication when openning a CONNECT tunnel.
Adds the option to omit the usage of a CONNECT tunnel by adding the noconnect
parameter to the URL of the proxy.
The response matching re is now compiled once at module load time.
Changed the proxy tests to use libmproxy instead of starting mitmdump as a separate process.
Added mitmproxy as a requirement.
Corrected typo in tox.ini
Added a delay to wait for the proxy to start.
Corrected a test that used a dummy URL that unpurposedly had an https scheme and failed with PR 397.
Fixed the location of the certificate required by libmproxy.
Added a test case to ensure that passing the noconnect paramenter avoids trigerring the creation of a connect tunnel when downloading from a site with https scheme.
Merge pull request #397 from duendex/duendex/proxyTunnel

Adds the functionality to do HTTPS downloads behind proxies using an
Update CrawlSpider Template with Selector changes
BaseSgmlLinkExtractor: Fixed unknown_endtag() so that it only set current_link=None when the end tag match the opening tag