Tomcat multi-instance support based on CATALINA_BASE (revised)

This patch would allow Tomcat multi-instance configuration based on CATALINA_BASE instead of CATALINA_HOME as described in the Tomcat documentation, along with some code refining.

The patches are once reviewed in #228 , updated for the comments and rebased to the latest repository.

Thanks,