AP: Deal reached on tax breaks for Pa. refinery