Removed log spamming from message polls and some other javascript refactorings.