Fix bug 1047018: Track successful log in/out

Let's do this first -- I think if that fails, the analytics and optimizely pushes wont happen.  That would be a good thing, I think.