Here are some links to blogs and sites (recommended by resident directors and students) that offer ideas about what to do in Madrid, the first three especially useful sources on extracurricular activities.
El Tenedor (the best restaurant recommendations site in Spain)