Fixes mixed-content warning
Added client events to app
making the user_id random