Updated filters to handle the context correctly and remove deprecated AbstractFilter references/dependencies. Also refactored some basic code to PSR-2.