avoid download large response

introduce DOWNLOAD_MAXSIZE and DOWNLOAD_WARNSIZE in settings and
download_maxsize/download_warnsize in spider/request meta, so
downloader stop downloading as soon as the received data exceed the
limit. also check the twsisted response's length in advance to stop
downloading as early as possible.
add 2 more test cases and minor doc fixes
Force to read DOWNLOAD_TIMEOUT as int (for example to pass using
environment variable)
pin mitmproxy 0.10.1 as >0.11 does not work with tests
mitmproxy 0.10.1 needs netlib 0.10.1 too
attemp to fix travis fails
Merge pull request #946 from tpeng/limit-response-size

avoid download large response
Merge pull request #954 from kalessin/int-download-timeout

Force to read DOWNLOAD_TIMEOUT as int (for example to pass using environment variable)