Analysis and synthesis of cellular decision making: modeling epigenetic regulation in cell fate networks and designing a distributed synthetic counter circuit.