Now adding UUIDs to blocks

Both in javascript and python, if a block does not have a universally
unique ID (a UUID) associated with it, one is added.

Had to make it so serialize() could take a parameter to output without
UUIDs so existing tests don't break.