Allow multiple dialogs AJAX and keep focus in dialog during backwards tabbing 

Fixes #166 

Also added a fix to keep focus inside the dialog box when tabbing backwards.