Use SSL for submitting stats

Change-Id: If830c05ee121d3951ffcf34cd3bbd499c5107f1d
(cherry picked from commit cad7127a84ed1d384470b5088f8f82b19afbaf4f)