Support tabbing through controls in modals, popovers, and selects

I rebased the work that @thangdinh did, as he will be unable to work on this for a while. Not very familiar with the code, so hoping that someone else is.

@cyril-sf @azirbel @Dylnuge @jpriceAddepar 
this looks pretty suspicious but I'm not sure what it does