Modifies root function to make Markdown.Extra loadable with AMD (require.js) and CommonJS (eg node) systems

This maintains the the implicit modification of Markdown global (window.Markdown).

The universal loading (based on https://github.com/umdjs/umd/blob/master/returnExports.js ) checks which module system is in use and does the appropriate thing.