Implement cancelOperationsMatchingBlock.

This cancels all operations in the shared queue for which the given block
returns YES.

cancelOperationsContainingURLString is now implemented in terms of
cancelOperationsMatchingBlock.
Merge pull request #338 from tipbit/cancel-matching-block

Implement cancelOperationsMatchingBlock.