main/task: added GnuTLS support to sync with a taskd server