Use path instead of NSManagedObjectID for persistance.

Closes #2657 
cc @astralbodies