Added form that lets users write a comment in views/thread/view.php.
Added write() method in models/thread.php.
Added write() method in thread_controller.php.