Merge pull request #1 from vikramrajkumar/master

DNS unit tests & associated bugfixes
use block state
Refactor buy_domain
Initial validate_domain_output refactoring