Fixes #5154 - CSRF related ng upload issue

Fixes the following cases
1) Manifest Import
2) Repository Info puppet module upload
3) Gpg key upload
After the following change in foreman https://github.com/theforeman/foreman/commit/73f99b5c79de3d2a6b65e8833c6be72117ca1257
the upload code would stop working because csrf tokens were not
being sent as a part of the session.
This commit fixes that issue
Merge pull request #3976 from parthaa/csrf

Fixes #5154 - CSRF related ng upload issue