Add createAttribute and createAttributeNS :-(

See https://www.w3.org/Bugs/Public/show_bug.cgi?id=25016 for context.

Also cleanup and fully remove some things that are actually obsolete,
such as entities, yay!