more consistency in tomcat's applications wait

Added polling of http tomcat pages to wait that tomcat's applications are really started because tomcat log isn't sufficient.