Finish Core Data support (Fixes #4)