Dan Gilbert's Rocket Companies plans to buy Seattle-based Redfin in an all-stock deal, according to a news release.