moved ajax-modal-wait display to global Ajax event handlers; added log modal and functionality