more consistency in tomcat's applications startup wait

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