Set long polling timeouts as resolved when they timeout under normal conditions, to avoid messages getting lost.
Add some trace debug for server-side debugging of message flows via long polling
Improve logging trace messages with use of better api
Add some comments explaining the code and tests a bit more
Rename User.pending to User._pending to clarify that it is a private attribute
Merge pull request #386 from Standard8/inter_fix

Ensure long polling doesn't drop events at the end of the long polling cycle, r=@dmose