Fix performance dramatically for large Post tables

Pre-filter the sub-select of Post in these queries, which massively
improves performance on large Post tables.

Add indexes to ForumThread as well which helps across the board.
Merge pull request #108 from halkyon/performance_fixes2

Fix performance dramatically for large Post tables