Stochastic Dynamics and Epigenetic Regulation of Gene Expression: from Stimulus Response to Evolutionary Adaptation