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.
we prefer to return early for readability. so here i suggest we just do 

```
if (empty($query)) {
    return array(
        'items' => array(),
        'information' => array(),
    );
}
```

and then have the following code without indention. then we can also remove the `$doc = null` below. and the null check inside extractSearchResults.