Continue refactoring datePicker directive for better testability.
Finish restoring functionality to date pickers after the directive refactor.
Fix bad logic in the datePicker function responsible for updating the 'min' setting of the end picker.