Twitter is expanding its direct messaging feature to enable users to communicate privately with a single person or with a group of people, even if they are not following each other.