Add model functions for threads and entries
Add routes for threads
Add routes for entries