adding support to custom headers
making it compliant to client extra headers
adding a few tests (still manual)
Merge branch 'more_tests' into filter_fix_private