fixes to focus/idle/unread count
more updates to idle scripting
fixed auto-scrolling