fixed infinite loop when closing modal.

If you used `utils.history.navigate` in a modal `onClose` event handler, that
would call `troller.modals.close()`, which would then trigger the `onClose`
handlers of all open modals, leading to an infinite loop.

This fixes that by removing the modal from the open modals object before
triggering the `onClose` handlers.
added password reset.  have everything except functionality