Added unit tests for (and fixed) Workspace storing/serializing.
Made generic AbstractWorkspace.