Organisation and infrastructure improvements.

Set is now a real Python set. Sub-sets have been removed. Sets no longer have a
name.