An easy way to archive and unarchive NSManagedObjects. Mainly from https://gist.github.com/robertjpayne/1324319