fmbtgti: beforeRefresh and afterRefresh callbacks on waits

wait, waitBitmap, waitOcrText, waitScreenUpdated and
fmbtandroid.waitText accept beforeRefresh and afterRefresh
callback functions as parameters.