Fixing JSON serialization for NSDate objects.
Added support for Core Data.