store: begin keeping dirty pieces in memory

yet another attempt to improve IO performance
store: consumeFile partially from memory, piecesGraph
store: fix interestingPiecesThreshold/piecesReadahead logic
rm debug, cosmetics
peer: cancel chunk only after 2nd timeout

reduces unexpected chunk warnings
store: fix consumeFile()