Create modelProducts.php

When a new category or subcategory is selected by the user, ajax queries the Magento product database in order to obtain either a list of sub categories, or products with that subcategory, based off the user's selection.