Cleaned up logging and fixed warnings. (Log-levels still require tweaking.)
Fixed error notifications on Content-Format change.