Performance enhancements for unit tests
in test_contentstore, don't load the xml course if not necessary
Consistently ensure dog_stats_api tags are formatted correctly
Added handling in gitlog for missing import logs

Fixes a template error that occurs when viewing a course's detailed
git import log. The problem happens for courses imported using methods
other than the `git_add_course` command.
Merge pull request #5431 from open-craft/datadog-wrapper

Consistently wrap the DataDog API to prevent logged errors & missing stats data
Merge pull request #5423 from mitocw/bdero/fix-gitlog-focused-error

Added handling in gitlog template for missing import logs
Dont' need error check call in old mongo on this test
pylint cleanup.
Merge pull request #5560 from edx/benp/improve-pylint-violations

pylint cleanup.
Endorsement username shouldn't be broken

If we endourse the answer of the question in discussion
the username link that is created is broken whereas it
should point to the userprofile.

TNL-188
Merge pull request #5558 from edx/dhm/bug_index_count

Dont' need error check call in old mongo on this test
Merge pull request #5535 from edx/dhm/unit_perf

Performance enhancements for unit tests
Merge pull request #5540 from mlkwaqas/waqas/tnl188-endorsement-username-link-broken

Endorsement username shouldn't be broken