Move api/products_controller logic to a Importer

Allow us to easily apply that same logic in other parts of a Spree
application. Plus clean up some duplicated code