ContentProvider support. TODO: tests.