Modal as directive and datepicker good use of two way databinding

- Create a transclude element directive for modal dialogs
- Datepicker directive make good use of two way data binding