Cancel decoding, periodic checks for cancellation.

@JakeWharton 

Needs an extra test for canceling between transformations. Thoughts?