ENH: Implemented calendar widget for datetime entry

In addition:
- Fixed a minor bug in the init function of QueryWidget
ENH: Refactor of query_widget complete