Removed mixpanel from localhost version
Socket refactor
Socket fixes