Compatible Tomcat Server on Heroku

Added compatibility for an embedded Tomcat server to use on heroku

-previous commit did not work