Misc. Forum + Chat Bugfixes

Fixes #960.
Fixes #961.
Fixes #959.
Fixes #968.
Fixes #969.

http://jenkins.buttonweavers.com:8080/job/buttonmen-AdmiralJota/164/

(I believe the one PMD warning is one that was introduced earlier, not anything new in this pull.)