Add hopping detection

Detect hopping between locations. This is a useful feature which will
report if a user is hopping between separate locations. If someone keeps
rapidly changing locations between London and Stuttgart, that's not usual
behaviour and may indicate account sharing or compromise.

Automatically performs db upgrade from version 1 to version 2