The evolution of the immune system: conservation and diversification