Adding iWaitForAjaxToFinish() call to relevant steps for @javascript scenarios.

The new beforeJavascriptStep() and afterJavascriptStep() methods fire for any scenario tagged with @javascript. They ensure that AJAX operations are completed before Behat moves to the next step. This prevents many testing issues.