DDI3.1 output now more complete, grids more functional

Codelists now work properly, with separate storage in the XForms tree.
Grids are prettier when there is one codelist domain across multiple
subqs
Includes css form the above hange.