Collectively, Twitter’s messages are a surprisingly useful tool for solving problems and revealing public opinion.