Automatically mark logs on receiving messages in the background.

Conflicts:
	Classes/Controllers/AppController.m
	Classes/IRC/IRCClient.m
	Classes/IRC/IRCWorld.m
	Classes/Views/Log/LogController.h
	Classes/Views/Log/LogController.m
Fix errors after cherry-pick merge.