Wait for ajax improvements

* Improve wait_for_ajax to wait for jQuery and AngularJS ajax requests
* Update create content views to take advantage of the new version of wait_for_ajax

Related to #453