fix button states, broken by recent work; refactor for cleaner implementation
retain last memory state if program is manually stopped
added 'Clear Errors' button; reorganized toolbar towards upcoming MOTD area
up to 0.073
trap remaining getApplication() calls in try/catch