Fixed #5418 -- added assertNoBrokenLinks to test system

Check for broken links in a rendered page. By default only internal links are
checked, if `only_internal` is `False`, external links are checked too. By
default, redirections are considered valid and not followed unless specified
with `follow=True`.

This commit adds the patch, the tests and the docs where the possible side
effects of this test are noted.