Remove auth headers when redirecting

Resolved an issue when authentication headers where sent also in
redirected request. This caused error when authenticated request was
redirected to AS3 server.
Updated gitignore

added .idea files to the ignore list