Adding in support for thread local debugging context and filters

This can be used for adding vital debugging context