Focus modal dialog input or text area on load

Small usability tweak to make keyboard shortcuts (such as CTRL+A to select all text or Escape to close) work as expected.
Merge pull request #280 from dimagi/modal-dialog-focus

Focus modal dialog input or text area on load