Add local storage for sidebar

The sidebar did not remember if it was expanded or contracted between
page views, now it does.