Restructure code
- Move function detect from T3 plugins file into include/core/t3.php
- Add includes/core/bot.php with 3 functions: preload (before checking T3), beforeInit (before init T3) and afterInit (after init T3)