I use a special detergent designed for technical fabrics. (I bought Hex, because it was available at my local grocery store, but there are a few other similar products: http://laundry.about.com/od/laundrydetergentreviews/tp/Product-Reviews-Active-Wear-Laundry-Detergents-Sportswear-Laundry-Detergents.htm)
I don’t use the special detergent every wash, but pull it out when my shirts start to smell.
In terms of cycle, I just run them on a normal warm water cycle with the rest of my clothes and hang them to dry.