Export the setTextContent utility

This is an update to pull request https://github.com/knockout/knockout/pull/1441 with some tests

The issue addressed by the pull request is explained a bit here: https://github.com/knockout/knockout/issues/1528