Move datepicker to core and fix module dependencies