Avoid truncating long log lines
Use charStringIsEmpty instead of comparing to NULL
Common constructor for Plugin class

Removes a ton of duplicated code