Open
Description
Thread spaces don't have a concrete relationship with a thread. That results in very brittle logic around getting and creating thread spaces.
This needs a refactor adding a concrete space_id reference to a thread. Threads need to know about a space attached to them. Spaces do not need to know about the thread attached to them.