added safeSave, AMD/CommonJS/global shim, improved internals so save and safeSave won't be iterated over.