Add ability to generate genesis block.

Add ability to generate genesis block.