Mainly tidy up form-template

1. introduce datepicker widget
2. add closeUrl to (two) standard-button.vm
3. consolidate relevant parts into form-template