Setup CoreData and the managedObjectContext in the appdelegate