Add Math polyfill

This implements the new ES6 Math functions.

The implementation is based on V8 and MDN as well as the spec.

The tests are mostly just smoke tests. I'm not testing a lot of
edge cases.
Or maybe these are the corner cases you mentioned? I was unclear if you meant these kinds of tests or numerical accuracy problems.