Added delete dialog for deleting a patient.
Improved typehead so it will not allowe duplicate entries to be
inserted.
Imrpoved smodal to set focus on the first input, or on the selected
button if there are no inputs.