Add publish methods to persist data.

Add publish methods so that DataCard and DataCardImage can be persisted
to the ContentProvider.