Finish logging support and add some spec coverage for it.
Move settings into the new Configuration class.