fix code style
fix path which was changed when moving to a PSR-4 compatible directory structure
use Guzzle to perform API HTTP requests