Fixes #3878 - add Deferreds around calls to write the custom widget to
server and only do a browser refresh after the Deferreds have been
resolved.
Merge branch 'master' of github.com:maqetta/maqetta