block: add toJSON and fromJSON to Block.

Now that we have a Block framer, I thought this would be nice to add, in case we ever want to (or a user wants to) store full blocks.