Different blacklist handling and bug fixes

* Handle node injection after the all text in a text node
* Apply blacklist to a node, not its subtree
* Fix a couple of other bugs