Standardize logging to more closely match Python standards.
Some cleanup and additional logging around dbo and template class initialization.