Refactor sidepanelFolder
Make sidepanelFolder configurable

Receives an init() function and reads in its initial fold status from
the configurator.
Hide sidepanel per default in staging.json