fetchObjectWithEntityName:predicate: refactor
added coredata headers
Merge pull request #3 from Axadiw/master

small code duplication removal courtesy of Asadiw;