Add checkpointing for DStreams

Fixes #64 
I think this got removed accidentally; I'll put it back with a follow-up commit.