Cleaned up logging and fixed warnings. (Log-levels still require tweaking.)
Fixed error notifications on Content-Format change.
Provide access to client principal
Add folder for resources for test classes
Add test case