Adds a Core Data stack class.

Signed-off-by: Daniel Thorpe <dan@blindingskies.com>