Merge pull request #3 from dimagi/allowclose

prevent closing modal during upload
allow specifying whether the controller can close during upload
Merge pull request #4 from dimagi/configurable-closure

allow specifying whether the controller can close during upload
separate out erring line