Refactoring code in products template. Adding products_helper and fixing some integration products tests