makeDocStructures(context)
Creates two structures that provide a friendly format for documentation.
'namespaces' is a dictionary that maps namespaces to a directives dictionary with the key being the name of the directive and the value is a tuple: (schema, handler, info).
'subdirs' maps a (namespace, name) pair to a list of subdirectives that have the form (namespace, name, schema, info).