general cleanup and refactoring

WARNING: this commit deprecates many functions and predefined steps

* refactored the segment control function to be less confusing
* deprecated keyboard steps that tried to set the auto correct,
  auto cap, etc. - the did not work
* refactored wait_for function calls to use BRIAR_POST_TIMEOUT
  and BRIAR_RETRY_FREQ
* fixed timeout bug in touch_tabbar_item
* added a predefined step to guard against testing email compose
  view on configs that dont support testing
* deprecated many of the segmented control predefined steps
* refactored split methods with various regex to use tokenize_list