Formtool date widget

This PR add support for date input in the formtool.

@smebberson it's ready for merge, can you please review?