Added some extra properties to the thread class (needed for forum view)
Rewrote thread listings in an OOP way. Pagination currently missing.