Focus the schedule dialog box when it pops up

Gives the schedule dialog box a tabIndex of 0 so that
it can be focused, and then focuses it.
The call to focus is in render, since I couldn't figure out
how to place it in initialize, since not enough is loaded yet.
That might be a horrible mistake, please fix that.

Now the dialog box closes when esc is pressed, like normal.

Fixes #196
Probably since it comes first in the tab order, the browser focuses it as if it were the first input element to interact with.