Method to start/stop tomcat.