fixed a bug in /products - method=delete works correctly now

I was working through the shopping cart example when I realized that items weren't being removed when clicking the delete button. Instead I was redirected to /products#BadInput. I did some digging and created a working solution. Any suggestions or direction is appreciated - thanks. 
The examples have been refactored to each have a package.json (instead of a master package.json). Can you please rebase from master and re-submit this PR?