0.1.2 rebase to master

This should include all changes related to genesis block and testnet generation, except checkpoint.