Understanding Microbial Ecology through Gene Regulatory Networks