Blockchain technology and smart contracts are helping to expand the residential mortgage market beyond the grip of big banks and governments.