Refactored to load modal dialogs via AJAX asynchronously.
Refactored login modal to conform to the system for the other modal
dialogs.