Modeling Biological Timing and Synchronization Mechanisms by Means of Interconnections of Stochastic Switches