Jenkins: Add support for csrf header

Some jenkins instances require a csrf header.
Added support for retrieving header and adding to jenkins post requests.
Added flag jenkinsUsesCsrf for configuration.