Merge "First draft of native StatsEvent API"