Provide a generic mechanism for mapping classes to attributes

Currently this is only used by MW nodes (BlockImage and Table)
but this may be useful to core or other extensions in the future.

Change-Id: I2db656351942be14d320b4221d2f268c02875b7a