Converted ApplicationServerRunner back to Java

If the runner is compiled in groovy it will need groovy on the classpath. This increases the classpath size remarkably and causes problems on windows. So converted the runner back to pure Java.