Revised ThreadsController

Also deleted message model and message functions "friend request" and
"send message"(redundant with "compose message""