There are new rules about how real estate agents are paid. That’s led some homebuyers and sellers to embrace a new way to pay their realtor: with a flat fee instead of a percentage of the sales price.