Make it possible to run Tomcat in-process too.
Changes to allow ElasticSearch to be forked or run embedded, and the same for Tomcat.