Fix some cases of autofocus not working

* Basically, made sure `focus_first_input` doesn't override autofocus
  and make sure `autofocus` attribute exists on forms
Whitespace cleanup
Enable autofocus and search-on-enter in selectors
Fix 'Edit Task' modal title
Fix autofocus for edit modals and remove extra setTimeout
Merge pull request #1669 from reciprocity/feature/fix-autofocus

Fix autofocus in modals