add google analytics calls for socket events

Introduce universal-analytics.
Leverage _ga cookie to link server and client side ga notifications
add events for key activation and referral events