simplify Element a bit using kwargs
avoids the need for an annoying attributes dict. Deal with
'class' as a special case. There are some others, apparently,
but hopefully I'm not gonna run into them.
We *could* just use lxml or something, but I'm trying to avoid
the dep for now...