Implemented datepicker in authoring forms.

Link to code review: http://mrccodereview.cloudapp.net/ui#review:id=1101

Added datepicker sample page. Impelemented input validation in datepicker. Refactored datepicker.ts