html: organize some headers and namespaces