First and second pass of OO-conversion. Still more to go.
- Leaving in wfDebugLog() usage for now.
- Also clarified comments and docs relating to the name limit.