fix, reuse allocated memory in the result object and also free it at the end
Merge branch 'core/matapi'

* core/matapi:
  fix, reuse allocated memory in the result object and also free it at the end
chore, conditionalise cliapps on libcurl
minor, use libcurl to send data to and receive from gandalfd
chore, add libcurl to travis CI config
Merge branch 'feat/curl-gandapi'

* feat/curl-gandapi:
  chore, add libcurl to travis CI config
  minor, use libcurl to send data to and receive from gandalfd
  chore, conditionalise cliapps on libcurl