Several changes that made TvC work more.

I'm kinda curious about the performance issues involved with querying the database twice for every user every 10 seconds or so. Unless there's a need to do it for every heartbeat (maybe the user can or does frequently change their name in-game?), I think a better approach is to get the ingamesn once and cache it in the session data. I've implemented that while importing your changes.