Fixed error messages in _validate_url
Recover functionality of serializing errors as json
Switched to pycurl. Caching password so it is asked only once.
Removed spurious print
Dump the job ID as a json string
Minor improvements in delegator.py
Log on debug the certificate and key
ErrorAsJson middleware must reset Content-Length
Bumped to 3.2.1