Add wait for ajax to complete to lettuce ui helper methods

For synchronization purposes in case it's needed. 

It seems like it won't be too expensive (time or resources) when running tests, and will cut down on test brittleness, as people don't always know when ajax calls are being made so this wait is required.

@zubair-arbi @andy-armstrong