In logging, replaced '\n' with a space + strip()

This should stop adding newlines into the log file
Revert "In logging, replaced '\n' with a space + strip()"

This reverts commit 338bb3f2502c16afb727b6e7abcf67e558a34b32.
Log and reset bad session data.
Better log filtering in test.
Merge branch 'feature/issue-30-invalid-session-data' into develop
Merge branch 'develop' into feature/issue-27-test-helpers
Update new test.