Added Push.registerAnonymous
Add affinity type and username parameter to MetricsService, and deprecate payload parameter.