Prefs not saving nickname

Issue #684 fix.

Also some minor tweaks to log activity to truncate messages after the first batch.