Work on logging

Hi Tom,

Here's a first shot at separating logging configuration from logging usage & ensuring the configuration only happens in the context of an actual application.

There's a rather clumsy maven project called "testlogging" which I created to test drive this - without the changes the tests in it fail.

Rob