Clean up some code, added filters to product resource, set up editing for products