Make WorkspaceReader available to extensions.

Add unit tests.