More work on setting up core data.

Note this breaks because I have a nil ManagedObjectModel and I don’t feel like fixing it right now because I need to go to bed. Hopefully it’ll be fixed tomorrow.