Version 3

Calculation of package_name and service_name need patricular attention.
I think it can only install one version. I think if you try include two instances you will get a puppet error saying that tomcat is already declared.  If you want to support this then you will need to define a tomcat type instead.