Make domplate use an XML parser instead of setting innerHTML

Closes #98.