Basic save state functionality, no loading.

It looks like this object being built up might be the same as `data`, if so we could just use `data` here, or make a clone of `data`. I think there is also something in lodash for getting just a subset of the properties in an object, if we wanted to just get the 4 seen here - something like `_.pluck`.