Adding examples of CLI api usage.
example RPC API for dns.
Fix compilation
Merge pull request #9 from vikramrajkumar/upstream

Fix compilation
Integrate miner into client + broadcast
Merge remote-tracking branch 'upstream/master' into lotto_experi
lotto cli and init program codes