refactor: extract thread traversal to reusable utility
- created bot.utils.thread module with traverse_thread() and extract_posts_chronological()
- refactored MessageHandler to use utility instead of custom recursion
- well-defined problem solved once, reusable in multiple contexts
- can be used in tests, analysis scripts, viewing tools, etc.