fixed various issues around how google auth'er wants to see urls.