Bug #70786: Don't emit data-parsoid attributes for template content

Moved stripEmptyElements into common module cleanUpTemplates, as
now both it and removeDataParsoid are smaller.

Change-Id: I695da6e4485ba62f3a1a4cc9e9fdd1a39637f327
Merge "Bug #70786: Don't emit data-parsoid attributes for template content"