Added forall_then - a fold for the trie
startup now sents the run_mode to mode_running (from mode_starup - so we can do some startup specifiy code).