Minor bugfix to exposure tool

This branch makes the export dialog/form clean up after itself. This was causing some strange bugs.

This based on the branch which was merged in https://github.com/gem/oq-platform/pull/33.