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
Merge remote-tracking branch 'upstream/1.2/develop' into 1.2/develop