Fix: Added onSet function to handle default values from input.

Added onSet function to handle default values from input. When an input has a default date value from ng-model, selecting a new date failed: there was no date object set for datepicker.
Solution: when opening the datepicker, it reads the value from the input's value and set as date object for the picker.