Improvements for tomcat container.

Hi

I added environment variables resolving for tomcat container. Code was tested on Tomcat 6, Tomcat7 and Tomcat8. Plugin works on jenkins servers used to deploy multiple components (100-200 per deployment) to many tomcat instances.