Thread user manager complete

Now thread owner can set users, who can see the thread (if it's not
public). Starting to work on profiles.