New safety laws and tightening insurance rules are changing what it costs to own a backyard pool.