Polyfills: initial commit of polyfills from 3.1

* Includes file path fixes to Grunt uglify task
Merge pull request #2851 from patheard/polyfills

Polyfills: initial commit of polyfills from 3.1