Removed out setting of properties for page creation from page.php to respective index pages for cms/products and shop/products. Makes more sense to set them there. Also removed references in functions to 'prodnum', changed back to 'id', except in case of MYSQL interaction, to ensure pretty URLs
Changed name of http.php to shared.php. Removed prepareProductPage function from page.php and put its functionality to shop/products and cms/products index.php pages instead. page.php should provide functions to prepare useful chunks of html but pages should prepare themselves.