initial port from http://linqtogoogleanalytic.codeplex.com