Cooperation, competition and warfare in bacteria: from model systems to the microbiome