Refactoring JettyEmbeddedServletContainerFactory for better third-party gradle plugin integration

Resolving issue  #1056