Adds getWorkspaces. Closes #45.