Genome Evolution of Endomicrobia: From Free-Living Bacteria to Intracellular Symbionts of Termite Gut Flagellates