DomainInfo changes

The first commit is the most important one, it brings gsql into line with the other backends (at least those that implement getDomainInfo).