Fix race condition in Foreman.runPhysicalPlan() between setting total fragment count and increment finished fragments

by calling QueryStatus.setTotalFragments() before fragmentManager.runFragments()

Conflicts:
	exec/java-exec/src/main/java/org/apache/drill/exec/work/foreman/Foreman.java
Allow specifying lilith's log appender endpoint using environment variable 'LILITH_HOSTNAME'