First simple fix to selser test generation.

* Doesn't add bare text nodes as children of <BODY> -- wraps
  them in <P>.
* Committing this version for now which already fixes a number
  of tests (164 fewer failures).
* Sorry everyone with pending patches -- you will need to rebase.

Change-Id: Ib29b81c45cc76648ca465e9ca00ee65de261d94a