Get distinct capabilities of the nodes registered with a hub as JSON

Currently, there is no way to retrieve the list (in a form of JSON) of distinct capabilities across all nodes registered with a hub, even though it is possible to see them as HTML by navigating to "/grid/console". It would be helpful to avoid any attempts to parse HTML in order to get capabilities and instead expose a path like "/grid/capabilities" that will result in JSON representing distinct capabilities. This may be helpful if one wants to dynamically create drivers without providing explicit details.