Add script that splits posts and threads into different files