Implement comments from nialscorva, and add es5 shim file. refs #9 refs #11 refs #13 refs #28

Minor code cleanup, and provide implementation of all standard es5 capabilities in es5-shim.min.js. Remove polyfill fm peer.js in lieu of this.