Make WorkspaceReader available to extensions.

Add unit test.