Cooperation and Conflict in Quorum-Sensing Bacterial Populations