DSML generator improvements. Initial structure.
DSML: Add registry and attribute api functions.