Changed packaging type to jar, to allow running with embedded Tomcat.