Remove duplicated data from legacy events

When event-tracking was fully integrated into the platform, some data was replicated in the context in the middleware and then later extracted and moved the old location by event-tracking. The legacy code path was not updated to remove this transient shim data from the context resulting in duplication of the information. This patch ensures that the transient information is removed from the context before emitting the event.

Fixes: AN-2369
Allow external_auth registrations to bypass PW complexity check
Merge pull request #4585 from edx/jbau/ext-auth-fix-password-complexity

Allow external_auth registrations to bypass PW complexity check
BLD-1049: Remove Group Configurations.
allow rsyslog to be none
Bok-choy: check if mysql is running, even if it's not a daemon.

The impetus is integration with test environments, where mysql is not configured
as a service.
Translate string iff non-empty

This resolves an issue where a checklist's long_description being empty
caused gettext to dump PO file headers.

I had originally made this change to the Stanford-Online/edx-platform
repository a few weeks ago [0] to address a failing test on our fork.
I didn't take the time to diagnose the root issue; I just fixed it for
the single case.

After stumbling across the issue elsewhere, @kluo <kevkluo@gmail.com>
followed through and tracked down the cause of the behavior. It turns
out that `gettext`, by default, translates the empty string into PO file
headers; this is apparently a feature, not a bug [1].

This behavior seems counterintuitive; for our use, it seems that
translating an empty string should simply return an empty string. We
already program defensively around this in platform code [2], but it'd be
convenient to resolve this with a centralized solution, instead of a
patchwork of fixes.

[0] 4b88f54aa658db952e899222ff5ede4a1c1beb18
[1] http://stackoverflow.com/questions/18459387/translation-of-empty-string-shows-po-header
[2] https://github.com/edx/edx-platform/blob/master/cms/djangoapps/contentstore/views/checklist.py#L140
Merge pull request #4652 from edx/jarv/only-add-handler-if-rsyslog

allow rsyslog to be none
Merge pull request #4645 from edx/benp/mysql-as-process-not-service

Bok-choy: check if mysql is running, even if it's not a daemon.
Merge pull request #4606 from edx/anton/remove-group-configurations

Add possibility to remove group configurations.
Basic notifications handling.

LMS-11163
bok-choy: check mysql the old way.
Merge pull request #4658 from edx/benp/fix-bok-choy-check

bok-choy: check mysql the old way.
Revert "allow rsyslog to be none"
Revert "bok-choy: check mysql the old way."
Getting data package files from AWS
Merge pull request #4659 from edx/revert-4652-jarv/only-add-handler-if-rsyslog

Revert "allow rsyslog to be none"
Merge pull request #4572 from edx/ahodges/documentation/DOC764

Ahodges/documentation/doc764
numbering error
Merge pull request #4661 from edx/ahodges/documentation/numbering

numbering error