Api responding too fast

Fixes #26 and Travis failing with CERT_UNTRUSTED error.