Crash and bug fixes

-Fix jump to last post after replying when perpage is set to <40.
-Fix blank page when rotating.
-Remove unused thread info setting.
-Misc crash fixes.