Major refactor
- Move threads and messages into their own modules and views