WIP: organizing a hierarchy of states for download,
Using localStorage to remember user preference to skip preflight.
Not working yet.
More work on downloading
Preflight preference working with local storage.