refactoring listeners into the web.xml (instead of custom stuff) in order to make the server more embeddable