Permit API_HOST/API_PORT environment variables to override default API address.

Change-Id: Id14bd25dfc96144cd732b4721ed7edbda11f2618