now rebuilding rules after coupon save
added entity metadata class; added expiration submodule
forgot to add files from last
added message for empty code
merged in master
got add/edit/remove/save coupon working on discount ui