FIX: Prevent unauthorized list of private message titles. Also remove some unused code.
adds unit tests for Discourse.HasCurrentUser