A pure-JS adaptation of the W3 [Structured Cloning Algorithm](http://www.w3.org/TR/html5/infrastructure.html#safe-passing-of-structured-data)