Split up handling of element names/namespaces.

This is now split up on Ragel level, simplifying the corresponding Ruby code.