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 
Line too long