add new pipeline methods to get file/image/thumbnail paths

This change allows to pass request, response and spider context to filename construction methods. As discussed per https://github.com/scrapy/scrapy/pull/370

I would like to add deprecation warnings but I'm not sure it is possible to do this cleanly. In the next commit I'll try to implement that.