Fix CORS error catching on save. Fixes #788. Fixes #451
Merge branch 'master' of github.com:systemed/iD