Microcosm cultures of a complex synthetic community reveal ecology and genetics of gut microbial organization