A putative flip–flop switch for control of REM sleep