18 stats module

This is an early implementation peer review
We are using the term 'prefer' rather than 'main' so this event should be 'location_prefer' in line with 'location_add' and 'location_remove'.