Revert "fix deployment problem on tomcat and hosted mode. Using ResteasyBootstrap in web.xml on tomcat raised a java.lang.InstantiationException: org.jboss.resteasy.cdi.CdiInjectorFactory exception.This fix is to make tomcat and hosted mode working, will look into ResteasyBootstrap further"

This reverts commit 1b110dc59b44fef2bc9bb75e159327f23b265942.
added reordered listeners to be bootstrapped in right order