Update to latest and add IE9 polyfill for btoa function

- Merged in commits from upstream master
- Copied polyfill from
https://github.com/TristanCavelier/notesntools/blob/master/javascript/base64.js