added autostarting with core data (it assumes that application delegate has property of type NSManagedObjectContext)