Various updates, cleanup

Earlier this year I made a few simple cleanups to the code but never bothered to make a pull request. They should merge fine with the google analytics stuff I think.
Yep, sorry for the typo. When we originally wrote that we probably thought we were going to try to actually convert pixel points to lat/lng, but it became clear that wouldn't be feasible.