CMS-1531 TypeScript: Convert SpaceStore and SpaceModel to TypeScript