Some refactoring and cleanup.
Tabs to search added. (Just in GUI)
datepicker added.
Merge branch 'advancedSearch'