Symbiosis in the microbial world: from ecology to genome evolution