updated cdata handling, options

when not processing cdata, merge text blocks
when processing cdata, text content is now an array
added options to support whitespace preferences trim, normalize