Some tidy work

- Use $this->getDB()->getType() instead of $GLOBALS['wgDBtype']
- Simplify ParserOutput access
- Add MockDBConnectionProvider for better test readability
Additional tidy work

- Improve MockDBConnectionProvider
- Simplified RedirectPropertyAnnotator
- Add RedirectPropertyAnnotatorTest::testAddAnnotationWithDisabledContentHandler