Some general improvements to web.xml and beans.
Filter is now working correctly.