Location tracking code

See http://misterhouse.blogspot.com location tracking post for details.