Completed implementation of saved states using Pebble persistent storage.