Global context logger, proxy context to threads

add `tests/` to flake8 check list (in `tox.ini`)