HG-16: Mercury API Extension

DO NOT MERGE, THIS PR IS PART OF PROJECT MERCURY! 
Why do we have to enable this functionality via hooks? Is there an existing MediaWiki or Wikia extension that will give you the JSON version of an article?