Add BI events for tracking email opt-ins

BI tracking of email opt-in and opt-outs, by organization. Segment's [debugger](https://segment.com/edx/lms-dev2/debugger) is down, so I haven't been able to fully verify; I'll do so as soon as it's back up.

@wedaly and @stephensanchez, could you take a quick look at this when you have a moment?

@griffresch, FYI.
Good call, I forgot to use the ternary operator. Made the change.

@stephensanchez that's definitely much more pythonic :P.