Spree compatible

update refinery to be compatible with spree. fixes issue #2202