completely re-done to support native tomcat/jboss cartridge and ohmage 2.15