Code style and lintage
Add success and error callback in API on HTTP requests
Merge pull request #517 from camptocamp/add-api-callback

Add callback on HTTP requests in API