Use `window.performance` proxy object

Instead of modifying attributes of the built-in `window.performance`
object directly, which can have unexpected behavior in some browsers
(Safari 8), this change introduces a proxy object that replaces the
original `window.performance` object and calls through to the original
performance object where applicable.