Bug 904278: Fix GA vote and login tracking.

Fixes JavaScript to only send the vote event to GA after the vote has been saved. Also moves the login attempt event outside of the getAssertion callback because we're tracking attempts, not just successful attempts.