localStorage for Automessage and Settings

Automessage and Settings are now stored in localStorage so that they
persist even after page reload. In other news, the modal `<div>` has
been moved below the scripts so that the settings page can access
app.js.