Here are some of the most common types of headaches and the best ways to treat them.