Alternative, potentially more flexible syntax for XUL building

Very slow at the moment.

It should be possible to create macros from attributes too?