Fix modal dialogs for bootstrap 2 -> 3.
Fix text input class for bootstrap 2 -> 3 (although this still doesn't seem to
fix the forms).