feat(config): add ability to save state in localstorage

this is my first go at this. It works, but I dont think I am
happy with it.
Merge pull request #15 from Envoc/feat-save-state

feat(config): add ability to save state in localstorage