Mock out the underlying segment-io call.

TE-532
Fix another analytics.init secret error message (noise).
Pipe analytics client output to stdout instead of devnull.
Merge pull request #6240 from edx/benp/fix-analytics-init

Mock out the underlying segment-io call.