tweaks to make modals fade better
added better comments. tweaked when modal is shown
tidied image chooser.js
Merge remote-tracking branch 'upstream/master' into feature/better-modals