[FIXED JENKINS-21892] Update swarm client to send CSRF token

This change aims to get a CSRF token from the jenkins server before sending the POST request that creates the slave. If the CSRF token cannot be obtained (i.e. authentication fails or CSRF protection is not enabled) it simply omits it (but writes a message in the log).

fixes JENKINS-21892