Add support for getting the real client IP behind proxies

Fixes https://github.com/owncloud/core/issues/10624

Fix copy paste fail

Add unittest for comma separated headers

Revert 3rdparty
Merge pull request #10653 from owncloud/x-forwarded-for

Add support for getting the real client IP behind proxies