added simple persistence in localStorage

This is intended to last until a proper database is added.