Moved most tomcat code into a shared library so that the Karma maven plugin can profit from it as well.