Fixed https bug in API.php

Also added composer.phar to ignore list