Added getSavedState and saveAppState to HDAppDelegate.m

Changed how dates are saved to ensure that they are always strings.