add logging facility and check logs in tests
add nslog and stderr log backends
Merge branch 'master' into stylesource