Improved logging support, adding configuration tests. Closing #1.