Datepicker: Merge with master

Sync datepicker branch with master branch.

Three unit tests fail and some demos does not work as expected -- as before the merge.