New preloader code
Bugfix: Restore session bugs fixed -- only one app at a time