Preliminary update for new GoogleAPIs

I updated your code to match the new GoogleAPI invocation requirements such as Project-KEY and JSON data response.
It's a preliminary implementation, some code cleanup is required and some features still need to be ported.
if there are encoding issues with google that json_decode does not
handle then i am fine with this. but normally json_decode seems good
enough to me if we don't do anything else.