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.
lets use [parse_url(PHP_URL_HOST)](http://ch1.php.net/manual/de/function.parse-url.php) - might not even need a function for that then.