Fixes, and general cleanup, including:

* Add LICENSE to generated distribution
* Configure logging first within application-main rather than later so that the appenders are configured.
* Add WARN level output to the console appender.
* Add diagnostic/environment setting output to the bash script.