Evolution of novelty and developmental plasticity: From developmental switch genes and epigenetic regulation to pathogen resistance