Cleaned up a lot of code and added the ability to create discussion threads instead of just responding to them.