Auto-save features state to localStorage

Automatically save the state of features such as fullscreen and
auto-scrolling (in addition to already saving Markdown)