Threaded change

Changed the ManagedObjectContext to use a different concurrency type and made saving happen on the main thread.