fix tox envlist
start at filtering out query strings and headers
fix string encoding for base64
pep8
simplify filter implementation and add unit tests