Update shim.js

added close() to handle windows/tabs.
added renderBase64() for pro's
Update shim.coffee
Merge pull request #71 from Digital8/master

Add renderBase64 proxy and close