Spatial Organization of Organisms and Functions in Bacterial Communities