v2v: Move append_* functions to DOM module.

Just code motion.
v2v: Hide implementation of 'element'.

Following the previous commit, the implementation of 'element'
does not need to be public.