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.

Somebody pull and test please. It works on mine, but firebase stopped. I think that's because of other changes I've made though, my branch is dirty.

EDIT: ah shit, I forgot I merged my build-refactor in here.