Progress on HorizonAPI.php

Also change from JSON to XML Accept headers because JSON is buggy over Horizon API.