Added basic API to most core pages

Disabled by default in settings, accessed by adding .xml or .json to
product, category, index and latest pages