Fixed certain API calls, SSL-support for API (trust all)