Fix bug in REST client

Enhanced a little REST client unit tests
Removed unexisting reference
Merge pull request #1581 from Zentyal/ejhernandez/fix-rest-client

Fix REST client on error
workaround until https://bugs.launchpad.net/ubuntu/+source/curl/+bug/1312241 is fixed
Merge branch 'jag/new-remote-services-fixes'
force inclusion of apt-transport-https in base system
do not build jq if already built
Merge branch 'master' into new-remote-services-fixes