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.