Rewrite focusing to use textarea (still a few display issues to sort out)

See #3, #4