Sections in localstorage

Sync with local storage on load.
Build tree from localstorage on media selection change.