Use localStorage for Google Analytics - not ready for merge

This makes Google Analytics use the newer Universal Analytics code, which allows it to store IDs using localStorage rather than cookies.

This can't be merged until the Google Analytics account is upgraded to Universal Analytics.