Use https requests to API when enabled
Use provided path for the API
Merge pull request #17 from palourde/api_bugfixes

Api bugfixes