Initial support for Attr and namespaces.

r? @ms2ger