Refactor how javascript passes settings around

Basically the webpage saves its own copy of the settings in localstorage, then passes them back on close.
The pebble js then takes these and parses them out and stores them into its own localstorage.