added dump macro to show expression/value; cleaned up appliaction cycle, re-init display when you regain focus, display_term when you lose focus, seperate from _init_app, _term_app