refactored to avoid hash map velocity contexts.
tomcat dependencies set to provided to allow servlet container deployment.