Switched API connection to plain HTTP instead of TLS.
Reorganized packages to simplify future extension.