clean up thread code a tiny bit. add ?findLastUnread param to view_thread