Updated Threads/Posts. Fixed related test.

* Added post_count and first_post_id indexes for thread
* Added linking of first post title to thread title
* Updated post test to work with latest changes