Merge pull request #19 from iampersistent/master

updates for mongodb
only flush current product in gateway
cs for product mapping