Move product and neighborhood settings to CMake-based configuration

This matches the change of the same nature on Plasma itself, making per-shard configuration easier without creating a separate branch or maintaining modified files.

I have tested compiling this, but I would like to see at least one shard (e.g. Gehn) use the new system before I actually merge it.