Modification to add opt-in support for collecting user metrics

Provides a preference accessible from the settings to allow users to opt-in to metric collection.