Add a TEE modifier.
Merge pull request #117 from eevee/tee

Add a TEE modifier.
cli: add cleanup() method to Application, which runs after main() and all subapplications have executed
cleanup: pass retcode as well