Use the more accurate DOMDOCUMENT rather than the XML parser

Not entirely sure what I was thinking before. This does a much, much better job.
Only break between posts, not images

Also track secondary replacements so that we can see a total
Merge pull request #6 from washingtonstateuniversity/content-fix

[PR] Additional changes to WPCLI scripting