Prevent thread page-jumping when resuming activity. Clean up debug messages and centralize debug flag in constants. Prevent refresh loop in forum index section.