Transcription factor networks, synthetic gene expression switches, and chaotic cell-cycle oscillations