Added script for checking if application has memory leaks. (asks status from tomcat manager)
Replace infinite loop with logic that has 10 tries, and then exit with 0 or 1 according to if latest smoke test failed or not
Merge pull request #10 from TomiTakussaari/master

Fix smoketest infinite loop. Added script to check if application is leaking memory