Set up two-way interaction between lunch begin/end and duration.

* Lunch begin/end will now set duration when they define a valid range.
* Duration will adjust lunch end when lunch begin is already set.
* Updated some JS formatting to standard.