http://www.demacmedia.com/magento-commerce/mini-tutorial-creating-shopping-cart-rules-programatically/