minor cleanup in api.php code
Adding support for host verification of HTTP Authorization handler requets. Important security feature..
JSON decode response from HTTP Basic HTTP Client