Save the state and width of sidebar in settings.
Close #97.